package com.ziyear.common.util;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
 * 功能描述 : 日期
 *
 * @author Ziyear
 */
public class DateUtil {
    public static Timestamp now() {
        Date date = new Date();
        SimpleDateFormat sFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return Timestamp.valueOf(sFormat.format(date));
    }
}
